<#import "../../layout.html" as c>
<#import "../../list_layout.html" as list>
<#assign alertList = []/>
<@c.html title="代理商列表">
<!-- ================== 开始页面级CSS调用 ================== -->
<link href="${pluginsRoot}bootstrap-wizard/css/bwizard.min.css" rel="stylesheet"/>
<!-- 日历控件 -->
<link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" rel="stylesheet"/>
<link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" rel="stylesheet"/>
<!-- ================== 结束页面级CSS调用 ================== -->
  <@list.html title="代理商列表" subTitle="代理商列表" alertList=alertList permi="sys:agent:save" addBtn=true searchHint="请输入用户名/姓名/手机号进行搜索">

  <!-- 开始用户权限参数 &ndash;&gt;-->
  <!--<@shiro.hasPermission name="sys:agent:edit">-->
    <!--<input type="hidden" id="editAgent" value="1"/>-->
  <!--</@shiro.hasPermission>-->
  <!-- 结束用户权限参数 -->

  <!-- 开启添加代理商模态窗口 -->
  <div class="modal fade" id="addModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h4 class="modal-title"> 新增代理商 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTips" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
        </div>
        <div class="modal-body">
          <ul class="collapse in text-info p-b-10 p-l-15" role="tabpanel" id="OperationTips">
            <li>请根据表单提示信息正确输入。</li>
          </ul>
          <form class="form-horizontal form-bordered p-0" action="${adminRoot}agent/add.json" id="addForm" method="post" autocomplete="off" data-parsley-validate="true">
            <div class="form-group">
              <label class="control-label col-md-2 col-sm-3">选择代理商&nbsp;:</label>
              <div class="col-md-9 col-sm-8">
                <a data-target='#agentModal' class='btn btn-sm btn-primary m-r-10' data-toggle='modal'><i class='fa fa-plus'>&nbsp;选择代理商</i>&nbsp;</a>
                <label  id="chooseAgentAdd"></label>
                <input type="hidden"  name="id" value="">
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2 col-sm-3">综合管理费分佣比例%<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
              <div class="col-md-9 col-sm-8">
                <input type="text" name="poundageScale" class="form-control" placeholder="请输入0到100之间的数字，且保留两位小数"  autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容必须是数字。"  onkeyup = "this.value=/^\d+\.?\d{0,2}$/.test(this.value) ? this.value : this.value.substring(0,this.value.length-1)"  data-parsley-required="true"  data-parsley-range="[0, 100]"/>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2 col-sm-3">递延费分佣比例%<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
              <div class="col-md-9 col-sm-8">
                <input type="text" name="deferScale" class="form-control" placeholder="请输入0到100之间的数字，且保留两位小数"  autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容必须是数字。"  onkeyup = "this.value=/^\d+\.?\d{0,2}$/.test(this.value) ? this.value : this.value.substring(0,this.value.length-1)"  data-parsley-required="true"  data-parsley-range="[0, 100]"/>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2 col-sm-3">利润分佣比例%<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
              <div class="col-md-9 col-sm-8">
                <input type="text" name="profitScale" class="form-control" placeholder="请输入0到100之间的数字，且保留两位小数"  autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容必须是数字。"  onkeyup = "this.value=/^\d+\.?\d{0,2}$/.test(this.value) ? this.value : this.value.substring(0,this.value.length-1)"  data-parsley-required="true"  data-parsley-range="[0, 100]"/>
              </div>
            </div>
          </form>
        </div>
        <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="addForm" nc-ajax-submit>确认提交</a></div>
      </div>
    </div>
  </div>
  <!--结束添加代理商模态窗口 -->


  <!-- 开启编辑代理商模态窗口 -->
  <!--<div class="modal fade" id="editModal" tabindex="-1" role="dialog">-->
    <!--<div class="modal-dialog modal-lg">-->
      <!--<div class="modal-content">-->
        <!--<div class="modal-header">-->
          <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
          <!--<h4 class="modal-title"> 编辑代理商 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTipsEdit" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>-->
        <!--</div>-->
        <!--<div class="modal-body">-->
          <!--<ul class="collapse in text-info p-b-10 p-l-15" role="tabpanel" id="OperationTipsEdit">-->
            <!--<li>请根据表单提示信息正确输入。</li>-->
          <!--</ul>-->
          <!--<form class="form-horizontal form-bordered p-0" action="${adminRoot}agent/update.json" id="editForm" method="post" autocomplete="off" data-parsley-validate="true">-->
            <!--<input type="hidden"  name="id" value="">-->
            <!--<div class="form-group">-->
              <!--<label class="control-label col-md-2 col-sm-3">代理商&nbsp;:</label>-->
              <!--<div class="col-md-9 col-sm-8">-->
                <!--<input type="text" name="userName" value="" class="form-control"  autocomplete="off" data-tip="tooltip" data-placement="auto" readonly="true"/>-->
              <!--</div>-->
            <!--</div>-->
            <!--<div class="form-group">-->
              <!--<label class="control-label col-md-2 col-sm-3">手续费分佣比例%<i class="f-s-14 text-danger">*</i>&nbsp;:</label>-->
              <!--<div class="col-md-9 col-sm-8">-->
                <!--<input type="text" name="poundageScale" class="form-control" placeholder="请输入0到100之间的数字，且保留两位小数"  autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容必须是数字。"  onkeyup = "this.value=/^\d+\.?\d{0,2}$/.test(this.value) ? this.value : this.value.substring(0,this.value.length-1)"  data-parsley-required="true"  data-parsley-range="[0, 100]"/>-->
              <!--</div>-->
            <!--</div>-->
            <!--<div class="form-group">-->
              <!--<label class="control-label col-md-2 col-sm-3">利润分佣比例%<i class="f-s-14 text-danger">*</i>&nbsp;:</label>-->
              <!--<div class="col-md-9 col-sm-8">-->
                <!--<input type="text" name="profitScale" class="form-control" placeholder="请输入0到100之间的数字，且保留两位小数"  autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容必须是数字。"  onkeyup = "this.value=/^\d+\.?\d{0,2}$/.test(this.value) ? this.value : this.value.substring(0,this.value.length-1)"  data-parsley-required="true"  data-parsley-range="[0, 100]"/>-->
              <!--</div>-->
            <!--</div>-->
          <!--</form>-->
        <!--</div>-->
        <!--<div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="editForm" nc-ajax-submit>确认提交</a></div>-->
      <!--</div>-->
    <!--</div>-->
  <!--</div>-->
  <!--结束编辑代理商模态窗口 -->

  <!-- 开始选择代理商列表模态窗口 -->
  <div class="modal fade" id="agentModal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h4 class="modal-title"> 选择代理商列表 </h4>
        </div>
        <div class="modal-body">
          <div id="dtGridContainerAgent" class="dt-grid-container"></div>
          <div id="dtGridToolBarContainerAgent" class="dt-grid-toolbar-container"></div>
        </div>
      </div>
    </div>
  </div>
  <!-- 结束选择代理商列表模态窗口 -->

  <!-- 结束编辑管理员模态窗口 -->

  </@list.html>
<!-- ================== 开始页面级JavaScrip调用 ================== -->
<script src="${pluginsRoot}bootstrap-wizard/js/bwizard.js"></script>
<!-- 表单checkbox项 -->
<script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
<!-- 日历控件 -->
<script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>
<script src="${jsRoot}agent/agent.handle.js"></script>
<!-- ================== 结束页面级JavaScrip调用 ================== -->
</@c.html>
